package com.pattern.seener;

import java.util.Observable;
import java.util.Observer;

/**
 * 淘宝的接口
 */
public class TaobaoObserver implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        String newProduct = (String) arg;
        System.out.println("淘宝更新了需求：" + newProduct + "同步更新产品");
    }
}
